package Model;

/*
 * Copy model class, holds the information about copy objects.
 */
public class Copy
{
    // fields
    private String serialNumber;
    private String purchaseDate;
    private String purchasePrice;
    
    // constructor with empty parameters, for creation of placeholder objects to work with
    public Copy()
    {
        this.serialNumber = "";
        this.purchaseDate = "";
        this.purchasePrice = "";
    }
    
    // constructor which requires all the information, for creation of individual person objects
    public Copy(String serialNumber, String purchaseDate, String purchasePrice)
    {
       this.serialNumber = serialNumber;
       this.purchaseDate = purchaseDate;
       this.purchasePrice = purchasePrice;
    }
    
    // getters
    public String getSerialNumber()
    {
        return serialNumber;
    }
    
    public String getPurchaseDate()
    {
        return purchaseDate;
    }
    
    public String getPurchasePrice()
    {
        return purchasePrice;
    }
    
    // setters
    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }
    
    public void setPurchaseDate(String purchaseDate)
    {
        this.purchaseDate = purchaseDate;
    }
    
    public void setPurchasePrice(String purchasePrice)
    {
        this.purchasePrice = purchasePrice;
    }
    
    // toString() returns String representation of objects data
    public String toString()
    {
        return "DVD Copy: \n Serial Number: " + serialNumber + " | Purchase Date: " + purchaseDate + " | Purchase Price: " + purchasePrice +  " | ";
    }
    
}
